from django.conf.urls import patterns, url, include
from product.views import  PublishHouseSailCreateView, \
    PublishHouseRentCreateView, HouseRentListView, HouseSailListView, HouseRentUpdateView, HouseSailUpdateView, \
    HouseRentDeleteView, HouseSailDeleteView

urlpatterns = patterns('',
                       url(r'^house/rent/$', PublishHouseRentCreateView.as_view(), name='rh_create'),
                       url(r'^house/sail/$', PublishHouseSailCreateView.as_view(), name='sh_create'),
                       url(r'^house/rent/list/$', HouseRentListView.as_view(), name='rh_list'),
                       url(r'^house/sail/list/$', HouseSailListView.as_view(), name='sh_list'),
                       url(r'^house/update/(?P<pk>\d+)/rent/$', HouseRentUpdateView.as_view(), name='rh_update'),
                       url(r'^house/update/(?P<pk>\d+)/sail/$', HouseSailUpdateView.as_view(), name='sh_update'),
                       url(r'^house/delete/(?P<pk>\d+)/rent/$', HouseRentDeleteView.as_view(), name='rh_delete'),
                       url(r'^house/delete/(?P<pk>\d+)/sail/$', HouseSailDeleteView.as_view(), name='sh_delete'),
                       # url(r'^house/detail(?P<pk>\d+)/rent/$', HouseRentDetailView.as_view(), name='rh_detail'),
                       )
